<?php 

/**
 * Joomla! 1.5 component arts_curriculum
 * @package    arts_curriculum
 * @subpackage
 * @author     Chris Borkowski {@link http://www.guggenheim.org}
 * @author     Created on 31-August-2009
 * @author     Modified on 18-August-2009
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

?>

<?php if ( ($this->params->def('image', -1) != -1) || $this->params->def('show_comp_description', 1) ) : ?>
<div id="ac-intro_main_feature">
<?php echo $this->intro[0]->main_body ;?>

<?php endif; ?>
</div>

<div id="ac_intro_featured_untis">
<div id="ac_intro_additional"><h4>additional featured resource units</h4></div>

<!-- ac intro table - each array item is banged out indiviually for greater control we could loop (see below) -->
<table>
	<tr>
	            <td>
				<div id="ac_intro_feature_box_1" class="ac_intro_feature_box">
                <a href="<?php echo $this->categories[0]->link; ?>" class="ac_intro_cat_link">
                <div id ="ac_intro_feature_image">
				<img src="/images/stories/<?php echo $this->categories[0]->image;?>" class="ac_intro_img"
				alt="<?php echo $this->categories[0]->title;?>" />
        			</div>
        				<div id="ac_intro_cat_title"><?php echo preg_replace('/(:)(.*)/', '',$this->categories[0]->title) ;?></div></a>
        		
        		</div>
                </td>

                <td>
				<div id="ac_intro_feature_box_2" class="ac_intro_feature_box">
                <a href="<?php echo $this->categories[1]->link; ?>" class="ac_intro_cat_link">
                <div id ="ac_intro_feature_image">
				<img src="/images/stories/<?php echo $this->categories[1]->image;?>" class="ac_intro_img"
				alt="<?php echo $this->categories[1]->title;?>" />
        			</div>
        				<div id="ac_intro_cat_title"><?php echo preg_replace('/(:)(.*)/', '',$this->categories[1]->title);?></a></div>
                </div>
                </td>
	
                <td>
				<div id="ac_intro_feature_box_3" class="ac_intro_feature_box">
                <a href="<?php echo $this->categories[2]->link; ?>" class="ac_intro_cat_link">
                <div id ="ac_intro_feature_image">
				<img src="/images/stories/<?php echo $this->categories[2]->image;?>" class="ac_intro_img"
				alt="<?php echo $this->categories[2]->title;?>" />
        			</div>
        				<div id="ac_intro_cat_title"><?php echo preg_replace('/(:)(.*)/', '',$this->categories[2]->title);?></a></div>
                </div>
                </td>

    </tr>
	<tr>
                <td>
				<div id="ac_intro_feature_box_4" class="ac_intro_feature_box">
                <a href="<?php echo $this->categories[3]->link; ?>" class="ac_intro_cat_link">
                <div id ="ac_intro_feature_image">
				<img src="/images/stories/<?php echo $this->categories[3]->image;?>" class="ac_intro_img"
				alt="<?php echo $this->categories[3]->title;?>" />
        			</div>
        				<div id="ac_intro_cat_title"><?php echo preg_replace('/(:)(.*)/', '',$this->categories[3]->title);?></a></div>
                </div>
                </td>
   
                <td>
				<div id="ac_intro_feature_box_5" class="ac_intro_feature_box">
                <a href="<?php echo $this->categories[4]->link; ?>" class="ac_intro_cat_link">
                <div id ="ac_intro_feature_image">
				<img src="/images/stories/<?php echo $this->categories[4]->image;?>"class="ac_intro_img"  
                alt="<?php echo $this->categories[4]->title;?>"/>
                	</div>
                		<div id="ac_intro_cat_title"><?php echo preg_replace('/(:)(.*)/', '',$this->categories[4]->title);?></a></div>
                </div>
                </td>

                <td>
				<div id="ac_intro_feature_box_6" class="ac_intro_feature_box">
                <a href="<?php echo $this->categories[5]->link; ?>" class="ac_intro_cat_link">
                <div id ="ac_intro_feature_image">
				<img src="/images/stories/<?php echo $this->categories[5]->image;?>" class="ac_intro_img"
				alt="<?php echo $this->categories[5]->title;?>" />
        			</div>
        				<div id="ac_intro_cat_title"><?php echo preg_replace('/(:)(.*)/', '',$this->categories[5]->title);?></a></div>
                </div>
                </td>
        
    </tr>
</table>

<!-- here's the looding method  clean up later
<?php foreach ( $this->categories as $category ) : ?>

<a href="<?php echo $category->link; ?>">
<img src="/images/stories/<?php echo $category->image;?>"/><br/>
<?php echo $this->escape($category->title);?></a><br/>



<span class="small">
  (<?php echo $category->numlinks;?>)
</span>

<?php endforeach; ?> -->

<div id="ac_intro_inst">
<p>* For access to more resource untis, browse by the navigation on the left.</p>
</div>


</div><!-- end the ac intro  page -->
